//package com.inspur.edp.bef.dtgenerator.core.uqConstraint;
//
//import com.inspur.edp.cef.designtime.api.operation.CommonValidation;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.validations.Base.Methods.ValCanExecuteGenerator;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.validations.Base.Methods.ValExecuteGenerator;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.validations.BeforeSave.BeforeSaveValidationGenerator;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.validations.DataTypeValidationsGenCtx;
//
//public class UQConstraintValGenerator extends BeforeSaveValidationGenerator {
//  private DataTypeValidationsGenCtx valsGenCtx;
//
//  public UQConstraintValGenerator(
//      DataTypeValidationsGenCtx valsGenCtx, CommonValidation validation) {
//    super(valsGenCtx, validation);
//    this.valsGenCtx = valsGenCtx;
//  }
//
//  @Override
//  protected ValCanExecuteGenerator getCanExecuteGenerator() {
//    return new UQConstraintCanExecuteGenerator(getContext());
//  }
//
//  @Override
//  protected ValExecuteGenerator getExecuteGenerator() {
//    return new UQConstraintExecuteGenerator(getContext());
//  }
//
//  @Override
//  protected String getName() {
//    return valsGenCtx.getDataTypeImplGenCtx().dataType.getCode()
//        + "BeforeSave"
//        + "UQConstraintValidation";
//  }
//}
